<template>
  <div class="app">app</div>
</template>
<script>
export default {
  data() {
    return {
      msg: 'hello vue',
    };
  },
  created() {
    console.log(this.msg);
  },
  // 1. setup 的生命周期比create块
  // 2. setup 没有this
  setup() {
    console.log('setup');
    console.log(this);
  },
};
</script>
<style lang="scss" scoped></style>
